package com.example.demo.controller;

import com.example.demo.po.User;
import com.example.demo.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
/**
 * @author 季舟
 * @Date 2025-02-06 13:17
 */
@RestController
public class UserController {

    @Autowired
    private UserService userService;


    @GetMapping("/user")
    public User queryUserByUserName(){
        return userService.queryUserByUserName();
    }
}
